package org.benxiong.iplay.util;

import java.util.Random;

public class Utils {

	public static boolean isEmpty(String string) {
		if (string == null)
			return true;
		if ("".equals(string.trim()))
			return true;
		return false;
	}

	public static boolean ignoreIndex(Integer index) {
		if (index == null || index == 0)
			return true;
		return false;
	}

	public static int randomIndex(int count) {
		return (new Random()).nextInt(count + 1);
	}
}
